export function getRandomArray(length: number = 10, min: number = 0, max: number = 100): number[] {
  return Array.from({ length }, () => Math.floor(Math.random() * (max - min + 1)) + min);
}

export function getDateArray(length: number, startDate: Date = new Date()): string[] {
  return Array.from({ length }, (_, i) => {
    const date = new Date(startDate);
    date.setDate(date.getDate() - i);
    return date.toLocaleDateString();
  });
}
